package com.ysd.lis.controller.qi;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.qi.QiIndexItemFixed;
import com.ysd.lis.request.qi.QiIndexItemFixedDto;
import com.ysd.lis.service.qi.QiIndexItemFixedService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 指标项目条件表 前端控制器
 * </p>
 *
 * @author PRS
 * @since 2024-08-15
 */
@Api(tags = "指标项目专业固定值")
@RestController
@RequestMapping("/api/qi/qiIndexItemFixed")
public class QiIndexItemFixedController extends BaseController {


    @Autowired
    QiIndexItemFixedService qiIndexItemFixedService;

    @ApiOperation("查询")
    @GetMapping("/findQiIndexItemFixedList")
    public Result findQiIndexItemFixedList(QiIndexItemFixed param){
        return qiIndexItemFixedService.findQiIndexItemFixedList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateIndexItemFixed")
    public Result saveOrUpdateIndexItemFixed(@RequestBody QiIndexItemFixedDto dto) {
        return qiIndexItemFixedService.saveOrUpdateIndexItemFixed(dto);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteFixedList")
    public Result batchDeleteFixedList(@RequestBody QiIndexItemFixedDto dto){
        return  qiIndexItemFixedService.batchDeleteFixedList(dto);
    }

}
